#include "LPC11xx.h"
#include "fan.h"

void fan_init(void)
{
  LPC_GPIO0->DIR |= 1 << 2;
}

void fan_on(void)
{
  LPC_GPIO0->DATA &= ~(1 << 2);
}

void fan_off(void)
{
  LPC_GPIO0->DATA |= 1 << 2;
}
